import { Component, Input, OnInit } from '@angular/core';
import { TallyManageUnlockService } from '../../tally-manage/unlock/tally-manage-unlock.service';

@Component({
  selector: 'app-tst-ori-to-detail',
  templateUrl: './tst-ori-to-detail.component.html',
  styleUrls: ['./tst-ori-to-detail.component.less']
})
export class TstOriToDetailComponent implements OnInit {

	@Input()
	tallyId: string;

	data: any;

	constructor(private service: TallyManageUnlockService) {
	}

	ngOnInit(): void {
		this.getTallyDetail();
	}

	getTallyDetail() {
		this.service.tstTallyDetail({id: this.tallyId}).subscribe(res => {
			this.data = res;
		})
	}

}
